package com.hui.security.bak;

import com.hui.security.sys.entity.Permission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PermissionMapper {
    int deleteByPrimaryKey(String permissionId);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(String permissionId);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    int batchInsert(@Param("recordList") List<Permission> recordList);

    int batchDelete(@Param("ids") String[] ids);

    int batchUpdate(@Param("recordList") List<Permission> recordList);

    List<Permission> selectByUserId(@Param("userId") String userId);

    Permission selectByNameOrUrl(@Param("permissionName") String permissionName, @Param("resourceUrl") String resourceUrl);

    List<Permission> selectByRoleId(@Param("roleId") String roleId);

}